﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels.WorkforceManage;
using VOL.SmartMecial.Infrastructure;
using VOL.SmartMecial.IServices.WorkforceManage;

namespace VOL.SmartMecial.Services.WorkforceManage
{
    public class BedService:IBedService
    {
        private readonly IBaseRepository<Entity.DomainModels.Bed> bedRepo;

        public BedService(IBaseRepository<Entity.DomainModels.Bed> bedRepo)
        {
            this.bedRepo = bedRepo;
        }

        public List<Entity.DomainModels.Bed> GetBeds()
        {
            return bedRepo.GetAll().ToList();
        }
    }
}
